package com.treasure.infrastructure.index;

import com.treasure.infrastructure.index.impl.IndexESDocHandlerImpl;
import com.treasure.infrastructure.index.impl.IndexVectorDocHandlerImpl;
import lombok.Getter;

/**
 * @author sunhongmin
 * @date 2023/8/25 20:14
 * @description
 */
@Getter
public enum IndexDocTypeEnum {

    INDEX_ES_DOC("es", IndexESDocHandlerImpl.class),
    INDEX_VECTOR_DOC("vector", IndexVectorDocHandlerImpl.class);

    private final String name;
    private final Class<?> indexDocHandlerClazz;

    IndexDocTypeEnum(String name, Class<?> indexDocHandlerClazz) {
        this.name = name;
        this.indexDocHandlerClazz = indexDocHandlerClazz;
    }
}
